home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
tetujin
/
src.lzh
/
TETUJIN.H
< prev
next >
Wrap
Text File
|
1994-09-04
|
2KB
|
69 lines
/* error num. */
#define OUT_OF_MEMORY 7
#define ILLEGAL_FILENAME 55
#define ILLEGAL_DATA 58
#define CANT_LOAD 1
#define READ_FAIL 1
#define CANT_SAVE 2
#define WRITE_FAIL 2
#define OUT_OF_WINDOW 1001
#define NO_WINDOW 1002
#define MinMem (1024*256) /* òKùvé╞é╖éΘô«ì∞âüâéâèé╠ÆΦï` */
#define WINCOUNT 16 /* ì┼æσâEâBâôâhâEÉö */
#define BAR_SIZE 16 /* âXâNâìü[âïâoü[é╠ò¥ */
/* for tif load */
#define LOADBUFSIZE (151*1024) /* âtâ@âCâïô╟é▌ì₧é▌âoâbâtâ@ */
#define EXPBUFSIZE (100*1024) /* ôWèJùpâoâbâtâ@ */
/* for tif save */
#define SAVEBUFSIZE (151*1024) /* âtâ@âCâïô╟é▌ì₧é▌âoâbâtâ@ */
#define GETBUFSIZE (100*1024) /* ôWèJùpâoâbâtâ@ */
/* ì\æóæ╠é╠ÆΦï` */
typedef struct {
int windowId ; /* âEâBâôâhâEé╠ID */
int vscrollId ; /* ÅcâXâNâìü[âïâoü[é╠ID */
int hscrollId ; /* ëíâXâNâìü[âïâoü[é╠ID */
char name[20] ; /* âEâBâôâhâEé╠â^âCâgâï */
char loadPath[80] ; /* âfü[â^é╠ô╟é▌ì₧é▌âpâXû╝ */
char savePath[80] ; /* âfü[â^é╠Åæé½ì₧é▌âpâXû╝ */
int lot ; /* ò█è╟ù╠êµé╠âìâbâg */
char *buf16m ; /* 1600û£ÉFò█è╟ù╠êµé╠âAâhâîâX */
char *bufAlpha ; /* âAâïâtâ@ò█è╟ù╠êµé╠âAâhâîâX */
char *buf32k ; /* 32kÉFò█è╟âAâhâîâX */
int dx ; /* èGæSæ╠é╠æσé½é│ */
int dy ;
int ox ; /* ì╢Åπò\ĪèJÄnì└òW */
int oy ;
}GRAPHWIN ;
typedef struct {
char title[40] ;
int prt ;
int min ;
int max ;
}BASE ;
typedef struct {
char title[80] ;
int setNum ;
BASE set[4] ;
int modeNum ;
char modeTitle[40] ;
char modeName[6][40] ;
int mode ;
int areaMode ;
}BASICSET ;
/* è╓Éöé╠ÆΦï` */
extern int tifLoad16m( char *, char *, char *, int *, int * ) ;
extern int cov16mTo32k( char *sour, char *dest, int n ) ;
extern int tiffCheckHead( char *name, int *c, int *x, int *y,
int *comp, int *fill, long *strip, long *clut ) ;
extern int tifSave32kAnd16m( char *work, char *name, char *buffer,
int bpp, int comp, int x, int y ) ;